package com.quartet.modules.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.quartet.api.PageResult;
import com.quartet.modules.service.dto.TServiceClickCountResponseDto;
import com.quartet.modules.service.dto.TServiceInfoResponseDto;
import com.quartet.modules.service.entity.TServiceInfo;
import com.quartet.modules.statistics.dto.ServiceStatisticsRequestDto;
import com.quartet.modules.statistics.dto.ServiceStatisticsResponseDto;

import java.util.List;

/**
 * 服务信息表(TServiceInfo)表服务接口
 *
 * @author makejava
 * @since 2021-05-24 17:51:08
 */
public interface TServiceInfoService extends IService<TServiceInfo> {

    /**
     * 功能描述: 给此订单的此服务自增一次
     * @author huipanxing huipanxing@chinasofti.com
     * @date 2021/6/11 9:32
     * @param customerCode
     * @param serviceType
     * @param orderCodeList
     * @return com.quartet.modules.service.entity.TServiceInfo
     */
    void increaseCount(String customerCode,String serviceType, List<String> orderCodeList);

    /**
     * 功能描述:  查询服务统计数据
     * @author huipanxing huipanxing@chinasofti.com
     * @date 2021/7/16 10:59
     * @param serviceStatisticsRequestDto
     * @return java.util.List<com.quartet.modules.statistics.dto.ServiceStatisticsResponseDto>
     */
    List<ServiceStatisticsResponseDto> queryServiceStatisticsData(ServiceStatisticsRequestDto serviceStatisticsRequestDto);

    /**
     * 功能描述: 分页查询服务统计信息
     * @author huipanxing huipanxing@chinasofti.com
     * @date 2021/7/16 13:56
     * @param serviceStatisticsRequestDto
     * @return com.quartet.api.PageResult<com.quartet.modules.statistics.dto.ServiceStatisticsResponseDto>
     */
    PageResult<TServiceClickCountResponseDto> queryServiceStatisticsList(ServiceStatisticsRequestDto serviceStatisticsRequestDto);
}